<?php
/*
 * controller.php
 */

require_once("controllers/init.php");
//print_r($USERS);
//echo $GLOBALS['FILE_SYSTEM_ROOT']."/controllers/authentication.php";
require_once($GLOBALS['FILE_SYSTEM_ROOT']."/controllers/authentication.php");

// get POST data
$data = array();
$GLOBALS['CURRENT_PAGE'] = "views/diary/diary.php";

if(isset($_POST['page']))
{
	$GLOBALS['CURRENT_PAGE'] = $_POST['page'];
}

//echo $GLOBALS['CURRENT_PAGE']."<br>\n";


require_once("views/default.php");



